/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.tnmk.worktime.service;

import java.io.File;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
 *
 * @author tnmkhoi
 */
public class PathService {
  public static File getParentDir(){
    Path path = Paths.get(Paths.get("").toUri());
    Path parent = path.getParent();
    if (parent == null) {
      return null;
    }
    return parent.toFile();
  }  
}
